//1033
//AFGXF
#include <iostream>
using namespace std;
int main()
{
	int a, b, c;
	cin >> a;
	c = a;
	for (a = 1; a <= c; a++)
	{
		for (b = 1; b <= a; b++)
		{
			cout << b << "*" << a << "=" << a * b << " ";
		}
		cout << endl;
	}
	return 0;
}
